﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLayer;


namespace Design
{
    public partial class WebForm9 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            BusinessLayer.AddBookings bok = new BusinessLayer.AddBookings();

            bok.booking_number = txtbookingnumber.Text;
            bok.payment_method = DropDownList1.SelectedItem.Text;
            bok.total_amount = Convert.ToDecimal(txttotalamount.Text);
            bok.booking_date = Convert.ToDateTime(txtbookingdate.Text);
            bok.return_date = Convert.ToDateTime(txtreturndate.Text);
            bok.description = txtdescription.Text;
            bok.status = DropDownList2.SelectedItem.Text;
            bok.quantity = Convert.ToInt16(txtquantity.Text);

            bok.save_booking();
        }
    }
}